package com.mumulx.check.web.controller;
import com.mumulx.check.redis.entity.PartTestBoxed;
import com.mumulx.check.api.service.RemoteFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/*
 *  Created by IntelliJ IDEA.
 *  User: 木木
 *  Date: 2020/10/29
 *  Time: 17:37
 */
@RestController
public class RemoteServerController {
    @Autowired
    RemoteFeignService remoteFeignService;

    @RequestMapping("/remoteserver/executechecker")
    public int executechecker(@RequestParam("partTestBoxed") PartTestBoxed partTestBoxed) {


        return remoteFeignService.executechecker(partTestBoxed);
    }


    @GetMapping("/remoteserver/test/{id}")
    public int test(@PathVariable("id") int id) {
        System.out.println("============================================");
        int test = remoteFeignService.test(id);
        return test;
    }
}
